#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：BugManagementSystem 
@File    ：filters.py
@IDE     ：PyCharm 
@Author  ：kdly
@Date    ：2024/12/5 下午1:40 
'''
import logging


class IgnoreFileLoadFilter1(logging.Filter):
    def filter(self, record):
        # 忽略包含特定字符串的日志消息
        return "first seen with mtime" not in record.getMessage()


class IgnoreFileLoadFilter2(logging.Filter):
    def filter(self, record):
        # 忽略包含特定字符串的日志消息
        return "Exception while resolving variable" not in record.getMessage()
